// models/location.go
package model

import "time"

type Location struct {
	LocationID  int       `json:"location_id" gorm:"primaryKey"`
	Longitude   float64   `json:"longitude"`
	Latitude    float64   `json:"latitude"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	Status      int8      `json:"status" gorm:"default:1"`
	CreatedAt   time.Time `json:"created_at" gorm:"autoCreateTime"`
	UpdatedAt   time.Time `json:"updated_at" gorm:"autoUpdateTime"`
}

func (l *Location) TableName() string {
	return "location"
}
